#! /bin/sh
#
# Generate syntactic sugar for hamcrest.
#
# Call from the source base directory. Note that this overwrites the
# SystemTestMatchers.java source file!
#
# TODO: Do that from within the build system!
#

M2_REPO=$HOME/.m2/repository

HAMCREST=$M2_REPO/org/hamcrest/hamcrest-all/1.1/hamcrest-all-1.1.jar
JSONLIB=$M2_REPO/net/sf/json-lib/json-lib/2.2.3/json-lib-2.2.3-jdk15.jar
JUNIT=$M2_REPO/junit/junit/4.6/junit-4.6.jar

java -cp target/classes:$HAMCREST:$JSONLIB:$JUNIT \
	org.hamcrest.generator.config.XmlConfigurator \
	src/main/hamcrest/matchers.xml \
	src/main/java \
	de.mafr.jsystest.matchers.SystemTestMatchers \
	src/main/java

# EOF
